package com.example.demo;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.annotation.ComponentScan;

// 短信服务
@SpringBootApplication
@ComponentScan("com.example.demo")
public class ConfigServerClientApplication {

	/**
	 * 启动方式
	 * java -jar **.jar --spring.profiles.active=prod
	 * new SpringApplicationBuilder(ConfigServerClientApplication.class).profiles("native").web(true).run(args);
	 * @param args
	 */
	public static void main(String[] args) {
		// java -jar **.jar --spring.profiles.active=prod
		new SpringApplicationBuilder(ConfigServerClientApplication.class).profiles("prod").web(true).run(args);
		//SpringApplication.run(ConfigServerClientApplication.class, args);
	}
}
